#include <stdio.h>
int main(void){
	int i,j,n,tem;
	int arr[200];
	scanf ("%d",&n);
	for (i=0;i<n;i++)
		scanf("%d",&arr[i]);
	for (i=0;i<n-1;i++)
		for (j=0;j<n-i-1;j++)
			if (arr[j]>arr[j+1]){
				tem=arr[j+1];
				arr[j+1]=arr[j];
				arr[j]=tem;
			}
	for (i=0;i<n;i++)
		printf("%3d",arr[i]);
	return 0;
}
